package com.qqaq.controller;

import com.qqaq.entities.CommonResponse;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MainContriller {
    @Value("${server.port}")
    private int port;

    @GetMapping("/")
    public CommonResponse index(){

        return new CommonResponse(0, "", port);
    }
}
